<?php

$query = "select CE.id_Equipo as ID,CE.nom_Equipo as EQUIPO,((TG.j_Ganados * 3) + TG.j_Empatados) as PTS,(TG.g_Favor - TG.g_Contra) as DIF from Tab_General as TG inner join Cat_Equipos as CE on TG.id_Equipo=CE.id_Equipo where CE.id_Fuerza=2 order by PTS desc,DIF desc limit 8";
$result = mysql_query($query);
$numero = 1;
while ($row = mysql_fetch_array($result)) {
    if ($row["ID"] == 7) {
        echo "<tr style=\"background: #0431B4; color: #fff;\"><td width=\"15%\"><center><font face=\"verdana\">" .
        $numero . "</font></center></td>";
        echo "<td width=\"70%\"><font face=\"verdana\">" .
        $row["EQUIPO"] . "</font></td>";
        echo "<td width=\"15%\"><center><font face=\"verdana\">" .
        $row["PTS"] . "</font></center></td></tr>";
        $numero++;
    } else {
        echo "<tr><td width=\"15%\"><center><font face=\"verdana\">" .
        $numero . "</font></center></td>";
        echo "<td width=\"70%\"><font face=\"verdana\">" .
        $row["EQUIPO"] . "</font></td>";
        echo "<td width=\"15%\"><center><font face=\"verdana\">" .
        $row["PTS"] . "</font></center></td></tr>";
        $numero++;
    }
}
mysql_free_result($result);
mysql_close($link);
?>